This patch defines a new P2M type used for sharable/shared pages. It also
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
commit2bde77654a4f4ef24b1162319705b5485071cef0
treeca8787a09695cc468154287c79075377a48f12bf
parent38edca187daf8961d574f0e9cec8d775f6271e35
This patch defines a new P2M type used for sharable/shared pages. It also
implements the basic functions to nominate GFNs for sharing, and to break
sharing (either by making page 'private' or creating private copy),
mem_sharing_nominate_page() and mem_sharing_unshare_page() respectively. Note
pages cannot be shared yet, because there is no efficient way to find all GFNs
mapping to the two MFNs scheduled for sharing.

Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
tools/xenpaging/xenpaging.c
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/mem_sharing.c [new file with mode: 0644]
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/mem_sharing.h [new file with mode: 0644]
xen/include/asm-x86/p2m.h
xen/include/public/mem_event.h